package model

import (
	"time"
)

type SingleOrder struct{
	SingleOrderId int `xorm:"pk autoincr"`
	RuleCustomersTypeId int
	AmountMoney int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (so *SingleOrder)QuerySingleOrder(rctId int) *SingleOrder{
	var sov *SingleOrder
	_, err := x.Where("rule_customers_type_id = ?", rctId).Get(sov)
	if err != nil{
		return nil
	}
	return sov
}